<extend name="Public/base" />

<block name="body">
<script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
<div class="main-title">
	<h2>新增消息</h2>
</div>
<form action="{:U()}" method="post" class="form-horizontal" autocomplete="off">
	<div class="form-item">
        <label class="item-label">类型</label>
        <div class="controls">
            <input type="text" class="text input-large" disabled="disabled" value="{$info.type_text}" />
        </div>
    </div>
	<div class="form-item">
   		<label class="item-label">收件人</label>
   			<div class="controls">
   				<input type="text" class="text input-large" disabled="disabled" value="{$info.uid|get_username}" />
   			</div>
   	</div>
	<div class="form-item">
		<label class="item-label">标题</label>
     	<div class="controls">
     		<input type="text" class="text input-large" disabled="disabled" value="{$info.title}" />
     	</div>
    </div>
    <div class="form-item">
    	<label class="item-label">图片</label>
     	<div class="controls">
     		<div class="upload-img-box">
     			<notempty name="info.cover_id">
     				<div class="upload-pre-item"><input type="hidden" name="cover_id" value="{$info.cover_id|default=''}"/><img src="__ROOT__{$info.cover_id|get_cover='path'}"/></div>
     			</notempty>
     		</div>
     	</div>
    </div>
	<div class="form-item">
     	<label class="item-label">消息内容</label>
     	<div class="controls">
     		<label class="textarea">
     			<textarea name="message" placeholder="消息内容">{$info.message}</textarea>
     			{:hook('adminArticleEdit', array('name'=>'message','value'=>'$info.message'))}
     		</label>
     	</div>
    </div>
	<div class="form-item">
		<button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
	</div>
</form>
</block>
<block name="script">
<script type="text/javascript">
	//导航高亮
	highlight_subnav('{:U('Message/index')}');
</script>
</block>
